<?php
	include_once '../../../ketnoi.php';
	$ngay = $_GET["ngay"];
	$sqllainhapvon = "SELECT * FROM sotietkiem WHERE NgayDenHan = '$ngay'";
	$kqlainhapvon = mysql_query($sqllainhapvon);
	if (mysql_num_rows($kqlainhapvon)==0)
	{
		echo "<tr class='odd'>";
			echo "<td class='dataTables_empty' valign='top' colspan ='7'>Không tìm thấy dòng nào phù hợp</td>";
		echo "</tr>";
	}
	else
	{
		while ($dong = mysql_fetch_array($kqlainhapvon))
		{
			echo "<tr>";
				echo "<td>" . ($i + 1) . "</td>";
				echo "<td>{$dong['MaSoTietKiem']}</td>";
				echo "<td>{$dong['MaKH']}</td>";
				echo "<td>{$dong['NgayDenHan']}</td>";
				echo "<td><a href='index.php?do=lainhapvon_xuly&id={$dong["MaSoTietKiem"]}'><img src='images/list_add.png' alt='Thêm' title='' border='0' /></a></td>";
			echo "</tr>";
		}
	}
?>